package impl;

import java.util.ArrayList;

import graphModel.GraphInterfaces.Edge;
import graphModel.GraphInterfaces.Graph;
import graphModel.GraphInterfaces.Node;

public class GraphImpl implements Graph {
	
	public ArrayList<NodeImpl> nods = new ArrayList<>();
	public ArrayList<EdgeImpl> edges = new ArrayList<>();
	
	

	
	public void addNode(NodeImpl noda) {
		this.nods.add(noda);
	}

	@Override
	public void addEdge(String nodeA,String nodeB,double weight) {
		this.edges.add(new EdgeImpl(nodeA, nodeB, weight));
		this.edges.add(new EdgeImpl(nodeB, nodeA, weight));
			}

	@Override
	public ArrayList<NodeImpl> getNodes() {
		return nods;
	}

	@Override
	public ArrayList<EdgeImpl> getEdges() {
		return edges;
	}

	@Override
	public void reset() {
		// TODO Auto-generated method stub
		
	}
	
}
